#include<iostream>
#include<algorithm>
using namespace std;
const int N = 1e5 + 10;
int a[N];
int n;
int main()
{
	cin >> n;
	for (int i = 1; i <= n; i++)cin >> a[i];
	sort(a + 1, a + n + 1);
	int cnt = 1;
	for (int i = 2; i <= n; i++) {
		if (a[i] > cnt) {
			cnt++;
		}
	}
	cout << cnt + 1 << endl;
	return 0;
}